﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShortMsgResend.aspx.cs" Inherits="Family_ShortMsgResend" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>短信重发</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            font-size: x-large;
            text-align: center;
            background-color: #CCCCCC;
        }
        .style3
        {
            text-align: right;
        }
        
        .hidden
        {
            display: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="style1">
            <tr>
                <td class="style2">
                    未成功短信重发</td>
            </tr>
            <tr>
                <td class="style3">
                    <a href="ConfirmBookArrived.aspx" style="text-align: right">跳转到图书确认页</a>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="给当前记录对应的家庭发送短信" OnClientClick="return confirm('确信发送短信吗？')"
                        OnClick="Button1_Click" />
                    &nbsp;共有记录<asp:Label ID="msg" runat="server" ForeColor="#FF3300" Style="font-weight: 700"></asp:Label>
                    条
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        DataKeyNames="ID" DataSourceID="gvdata" ForeColor="#333333" GridLines="None"
                        PageSize="16" Width="100%" AllowPaging="True" AllowSorting="True">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" />
                            <asp:BoundField DataField="ID" HeaderText="流水号" InsertVisible="False" ReadOnly="True"
                                SortExpression="ID" />
                            <asp:BoundField DataField="Cdate" HeaderText="记录日期" SortExpression="Cdate">
                            </asp:BoundField>
                            <asp:BoundField DataField="ClientIP" HeaderText="客户端IP" 
                                SortExpression="ClientIP" />
                            <asp:BoundField DataField="bid" HeaderText="图书编号" SortExpression="bid" />
                            <asp:BoundField DataField="title" HeaderText="发送标题" SortExpression="title" />
                            <asp:BoundField DataField="msg" HeaderText="信息内容" SortExpression="msg" />
                            <asp:BoundField DataField="sname" HeaderText="学生姓名" SortExpression="sname" />
                            <asp:BoundField DataField="mobile" HeaderText="接受电话" ReadOnly="True" 
                                SortExpression="mobile" />
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="False"  OnClientClick="return confirm('确信删除此条吗？')"
                                        CommandName="Delete" Text="删除此条" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerSettings Position="Top" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:SqlDataSource ID="gvdata" runat="server" ConnectionString="<%$ ConnectionStrings:DataConn %>"
                        SelectCommand="Get_All_NoSucessShortMsg" 
                        SelectCommandType="StoredProcedure" OnSelected="gvdata_Selected" DeleteCommand="delete from NoSuccessShortMsg where id=@id"
                        >
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
